import CourseContent from "@/pages/TeacherCourseContent/CourseContent";
import Wrapper from "./style";
import CourseContentNav from "@/pages/TeacherCourseContent/TeacherCourseContentNav";
import {useParams} from "react-router";
import {CourseContext} from "./context/CourseContext";

const TeacherCourseContent = () => {
    const {courseId} = useParams()
    const routes = [
        {
            index: 0,
            path: ''
        },
        {
            index: 1,
            path: 'studentAnalysis'
        },
        {
            index: 2,
            path: 'scoreManagement'
        },
        {
            index: 3,
            path: 'courseAchievement'
        },

    ]
    return (
        <Wrapper>
            <CourseContext.Provider value={courseId || ''}>
                <CourseContentNav/>
                <CourseContent routes={routes}/>
            </CourseContext.Provider>
        </Wrapper>
    );
}
export default TeacherCourseContent;